package org.dromara.mall.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.mall.domain.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 会员管理业务对象 member
 *
 * @author Mr Lei QQ：235921049
 * @date 2024-07-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MallGoods.class, reverseConvertGenerate = false)
public class GoodsBo extends BaseEntity {

    /**
     *id
     */
    @NotNull(message = "i不能为空", groups = { EditGroup.class })
    private Long id;


    /**
     * 品牌ID
     */
    private Long brandId;

    /**
     * 商品分类
     */
    private Long cate1Id;
    private Long cate2Id;
    private Long cate3Id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品副标题
     */
    private String subName;

    /**
     * 商品编号
     */
    private String goodsNo;

    /**
     * 主图
     */
    private String imgUrl;
    private String ossId;
    private String specIds;
    /*价格*/
    private BigDecimal price;
    /*市场价格*/
    private BigDecimal oldPrice;

    /**
     * 销售量
     */
    private Integer sale;

    /**
     * 收藏量
     */
    private Integer collect;
    /*评论量*/
    private Integer comment;
    /*总库存*/
    private Integer stock;


    /**
     * 上架状态
     */
    private Integer status;

    /**
     * 审核状态
     */
    private Integer verify;

    /**
     * 拒绝原因
     */
    private String refuseInfo;

    /**
     * 运费模版 0默认
     */
    private Integer freightId;

    /**
     * 手机端详情
     */
    private String contentMobile;

    /**
     * 是否推荐商家首页
     */
    private Integer isRecommend;

    /**
     * 是否推荐主站首页
     */
    private Integer isMaster;
    /*其他*/
    private List<MallGoodsSkus> skus;
    /*商品规格*/
    private List<MallGoodsSpec> specs;
    /*商品详情*/
//    @NotBlank(message = "详情内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private MallGoodsDetails details;



}
